package com.openNetty.common.bean;

/**
 * RPC应答封装类
 *
 * @author zhenggm
 * @create 2017-08-21 下午 1:36
 **/


public class ComResponse {

    private String result;
    private boolean success;
    private String errorMsg;
    private String filePath;
    private HttpAck httpAck;

    public ComResponse() {
        this.success = true;
    }

    public ComResponse(String result) {
        this.result = result;
        this.success = true;
    }

    public ComResponse(String errorCode, String errorMsg) {
        this.success = false;
        this.errorMsg = errorMsg;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }


    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public HttpAck getHttpAck() {
        return httpAck;
    }

    public void setHttpAck(HttpAck httpAck) {
        this.httpAck = httpAck;
    }
}
